<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/layout.css" rel="stylesheet" type="text/css" />
<smart>include file ='../head.config.html'</smart>
<script language="JavaScript" type="text/javascript" src="..<smart>$templatepath</smart>/javascript/jquery.color.js"></script>
<script language="JavaScript" type="text/javascript" src="..<smart>$templatepath</smart>/javascript/jquery.easing.js"></script>
<script>
	function tonext(whos) {
		$(whos).change(
			function(){
				var valarray=$(this).val().split('||');	
				$('#category').val(valarray[0]);	
				$('#searchcate').val(valarray[0]);	
				if (valarray[1]=='1') {
					$(this).next().attr('disabled','true').html('<option value="" selected="selected">数据加载中...</option>');
					$.get('../member/own_productcate.php',{action:'list',id:valarray[0]},function(data){
					DataArray = data.split("|||");var a='';for (var i = 0; i<DataArray.length-1; i++) {att=DataArray[i].split("||");id=att[0];cla=att[2];a+='<option value="'+id+'||'+cla+'">'+att[1]+((cla=='1')?' ->':'')+'</option>';};
					$(whos).next().removeAttr('disabled').html('<option value="" selected="selected"></option>'+a).nextAll().html('');
					tonext($(whos).next());
				})} else {$(whos).nextAll().html('').attr('disabled','true');
				};
		})
	};
	$().ready(function() {
		tonext('#c1');
		$('#MoreOptions_show').toggle(
			function(){$('#MoreOptions').show(1000, 'bounceout');$(this).html('隐藏辅助选项')},
			function(){$('#MoreOptions').hide(1000, 'bounceout');$(this).html('显示辅助选项')}
		)
	});
</script>
<style>
#Content,.HackBox,ul.Form_Advance li,ul.Form_Advance li.Seperator {
	CLEAR:both
}

#Content {
	TEXT-ALIGN:left;
}

#Content #SearchBox2 {
	BACKGROUND:url(http://pics.taobao.com/2k5/sys/adv_search/searchbox_bk.gif) #f9f9f9 repeat-x left top;
	POSITION:relative;
	PADDING-TOP:10px;
}

ul.Form_Advance li {
	MARGIN-BOTTOM:5px !important
}

ul.Form_Advance li,ul.Form_Advance li.Seperator {
	WIDTH:100%
}

ul.Form_Advance li.SubmitBox {
	TEXT-ALIGN:center
}

ul.Form_Advance li.SubmitBox input {
	padding: 3px 15px;
}

ul.Form_Advance li.Seperator {
	BORDER-TOP:1px solid #eee;
	FONT-SIZE:0;
	HEIGHT:0
}


ul.Form_Advance li div.Hint {
	PADDING-TOP:5px !important
}

ul.Form_Advance li div.Hint {
	FLOAT:left;
	WIDTH:140px;
	TEXT-ALIGN:right;
	PADDING-TOP:10px !important
}

#Content #SearchBox2 #SearchItem {
	MARGIN:0 40px
}

#Content #SearchBox2 #SearchItem li div.Hint {
	PADDING-RIGHT:10px;
	WIDTH:140px !important
}

#ItemAttributes {
	BORDER-TOP:#ddd 1px dashed;
	MARGIN:12px 0 0 143px;
	BACKGROUND-COLOR:#f3f3f3
}

#MoreOptions {
	display: none;
}
</style>
</head><body>
<div id="container760"><smart>include file ='../header.html'</smart>
  <div id="InfoSelectorTarget"> <smart>include file ='../InfoSelectorTarget.html'</smart></div>
  <div id="Content">
    <div class="HackBox"></div>
    <form action="product.php" method="get" id="mainform">
		<input name="searchtype" type="hidden" id="searchtype" value="1" />
		<input name="searchcate" type="hidden" id="searchcate" value="0" />
      <div id="SearchBox2">
        <ul class="Form_Advance" id="SearchItem">
          <li>
            <div class="Hint B">关键字：</div>
            <div class="NewLineInfo">
              <input id="keyword" accesskey="s" size="48" name="keyword" value="" />
            </div>
            <div class="HackBox"></div>
          </li>
          <li>
            <div class="Hint">类别：</div>
            <div class="NewLineInfo">
              <select name="c1" id="c1" style="WIDTH: 110px">
                <option value=""></option>
                <smart>foreach item = parent from = $ProductCateArray</smart>
                <option value="<smart>$parent.id</smart>||<smart>$parent.haveson</smart>"><smart>$parent.name</smart></option>
                <smart>/foreach</smart>
              </select>
              <select name="c2" id="c2" style="WIDTH: 110px">
              </select>
              <select name="c3" id="c3" style="WIDTH: 110px">
              </select>
              <select name="c4" id="c4" style="WIDTH: 110px">
              </select>
              
            </div>
            <div id="ItemAttributes"></div>
            <div class="HackBox"></div>
          </li>
          <li>
            <div class="Hint">卖家会员名：</div>
            <div class="NewLineInfo">
              <input name="shopname" value="" />
            </div>
            <div class="HackBox"></div>
          </li>
          <li class="Seperator">
          </li>
          <li class="SubmitBox">
            <input type="submit" name="Submit" value="  搜 索  " />
            <a id="MoreOptions_show" href="#" onclick="">显示辅助选项</a> </li>
          <li class="Seperator">
          </li>
        </ul>
        <ul class="Form_Advance" id="MoreOptions">
          <li>
            <div class="Hint">买卖方式：</div>
            <div class="NewLineInfo">
              <label for="SellType2">
              <input id="SellType2" type="radio" name="sell_type" value="1" />
              一口价</label>
              <label for="SellType4">
              <input id="SellType4" type="radio" name="sell_type" value="2" />
              团购</label>
              <label for="SellType3">
              <input id="SellType3" type="radio" checked="checked" name="sell_type" value="" />
              不限
              <input id="options" type="hidden" name="options" value="" />
              </label>
            </div>
            <div class="HackBox"></div>
          </li>
          <li>
            <div class="Hint">价格范围：</div>
            <div class="NewLineInfo">
              <input size="10" name="price_min" value="" />
              元 至
              <input size="10" name="price_max" value="" />
              元 </div>
            <div class="HackBox"></div>
          </li>
          <li>
            <div class="Hint">运费：</div>
            <div class="NewLineInfo">
              <label for="Shipping">
              <input id="Shipping" type="checkbox" name="tf_charge" value="0" />
              卖家承担运费</label>
            </div>
          </li>
          <li>
            <div class="Hint">发货方式：</div>
            <div class="NewLineInfo">
              <input id="AutoPost" type="checkbox" name="autopub" value="1" />
              <label for="AutoPost">自动发货</label>
            </div>
          </li>
          <li class="Seperator">
          </li>
          <li>
            <div class="Hint">所在地：</div>
            <div class="NewLineInfo">
              <input name="search_place" value="" />
            </div>
            <div class="HackBox"></div>
          </li>
          <li>
            <div class="Hint">结束时间：</div>
            <div class="NewLineInfo">
              <input size="2" name="end_time" value="" />
              天之内 </div>
          </li>
          <li class="Seperator">
          </li>
          <li class="SubmitBox">
            <input type="submit" name="Submit" value="搜 索" />
          </li>
        </ul>
        <div class="HackBox"></div>
      </div>
    </form>
  </div>
  <smart>include file ='../footer.html'</smart></div>
</body>
</html>
